<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>



<head>
    <style>
        div {
            border: 1px solid blueviolet margin-top:100px;
            margin-bottom: 100px;
            margin-right: 150px;
            margin-left: 80px;
            background-color: lightblue;
        }
    </style>
</head>

<body>

    <h1>使用单独的外边距属性</h1>
    <div>这个 div 元素的上外边距为 100 像素
        右外边距是 150 像素，下外边距是 100 像素
        左外边距是 80 像素。</div>

</body>

</html>